package com.tledu.production.mapper.crafts;

import com.tledu.production.model.crafts.ProcessModel;
import com.tledu.production.model.crafts.TechnologyModel;
import com.tledu.production.model.crafts.TechnologyPlanModel;
import com.tledu.production.model.crafts.TechnologyRequirementModel;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
/**
 * @author 赵若松
 */
@Mapper
@Repository
public interface TechnologyPlanMapper {
    //分页查询
    List<TechnologyRequirementModel> list();
    //根据工艺名称查询
    List<TechnologyRequirementModel>selectByName(@Param("type")String condition, @Param("searchText") String conditionName);
    //添加工艺要求

    Integer insert(TechnologyRequirementModel technologyRequirementModel);
    //删除工艺
    Integer delete1(String technologyId);

    //批量删除

    //根据id查询富文本
    String findEdit(String technologyRequirementId);
    //富文本保存
    Integer save(@Param("ids") String technologyRequirementId,@Param("requirement") String requirement);
    //编辑
    int updatereq(TechnologyRequirementModel technologyRequirementModel);
    //根据ID查全部
    TechnologyRequirementModel selectReqId(String technologyRequirementId);


}
